package com.yudean.esb.dao.erp;

import com.yudean.esb.domain.erp.ErpIdsApConReceiptsInt;
import com.yudean.esb.mapper.erp.ErpIdsApConReceiptsIntMapper;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository
@Scope("prototype")
public class ErpIdsApConReceiptsIntDao {

    @Resource
    public ErpIdsApConReceiptsIntMapper erpIdsApConReceiptsIntMapper;

    public int insertSelective(ErpIdsApConReceiptsInt record) {
        return erpIdsApConReceiptsIntMapper.insertSelective(record);
    }

    public int batchInsertErpIdsApConReceiptsIntData(List<ErpIdsApConReceiptsInt> erpIdsApConReceiptsIntList) {
        return erpIdsApConReceiptsIntMapper.batchInsertErpIdsApConReceiptsIntData(erpIdsApConReceiptsIntList);
    }

    public int deleteErpIdsApConReceiptsIntByControlId(long controlId) {
        return erpIdsApConReceiptsIntMapper.deleteErpIdsApConReceiptsIntByControlId(controlId);
    }
}
